$OpenBSD: patch-version_sh,v 1.8 2014/08/14 08:20:27 brad Exp $
--- version.sh.orig	Fri Aug  1 19:24:21 2014
+++ version.sh	Fri Aug  1 19:28:08 2014
@@ -2,6 +2,9 @@
 
 # Usage: version.sh <ffmpeg-root-dir> <output-version.h> <extra-version>
 
+revision=$(cd "$1" && cat snapshot_version 2> /dev/null)
+test "$revision" && revision=git-$revision
+
 # check for git short hash
 if ! test "$revision"; then
     if (cd "$1" && grep git RELEASE 2> /dev/null >/dev/null) ; then
